package com.ctec.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {

    @Value("endpoint")
    private String endpoint;

    @Value("fileHost")
    private String fileHost;

    @Value("accessKey")
    private String accessKey;

    @Value("secretKey")
    private String secretKey;

    @Value("bucketName")
    private String bucketName;
}
